-
-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to Boostrap 4 #246
base: master_v2
Are you sure you want to change the base?
Port to Boostrap 4 #246
Conversation
Just following up to see if you’d be interested in this PR or if it’s better for us to maintain the Bootstrap 4 version as a fork. I know the |
I'm not a maintainer of this theme but I strongly assume that your efforts to move it to bootstrap 4 are welcome... @ryanfox1985 ?
I'll have a look at it in the next few days! |
<li{{ if eq $current.RelPermalink ($name | urlize | lower | printf "/tags/%s/") }} class="active"{{ end }}> | ||
<a href="{{ "tags/" | relURL }}{{ $name | urlize | lower }}"><i class="fas fa-tags"></i> {{ $name }}</a> | ||
<li class="list-inline-item"> | ||
<a{{ if eq $current.RelPermalink ($name | urlize | lower | printf "/tags/%s/") }} class="active"{{ end }} href="{{ $.Site.BaseURL }}tags/{{ $name | urlize | lower }}"><i class="fas fa-tags"></i> {{ $name }}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a known issue this port. Highlighting of active tags does not work.
I didn't test your PR and only briefly looked at the changes you made, but I think broken highlighting could be due to the fact that you don't assign the class active
to the <li>
element anymore (you chose to assign it to the <a>
element instead). What's your reason to change this?
(same applies to the categories partial layouts/partials/widgets/categories.html
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also won't be the first time I've written code that works and I am not sure why it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it's handled on the upstream Boostrapious demo site here: https://demo.bootstrapious.com/universal/2-0-2/blog-medium.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've run your code in Hugo and it turns out you could just add the following CSS to the static/css/style.*.css
files to enable proper tag highlighting (example for style.default.css
):
.tag-cloud a.active {
color: #ffffff;
background-color: #4fbfa8;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t plan on making this change for this PR. I’ll look at what they do upstream.
@@ -127,11 +127,8 @@ paginate = 10 | |||
# Enable or disable top bar with social icons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ line 85 you should update the comment about the default theme color (now turquoise instead of light-blue)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Basically, I think the changes are so extensive that it would be appropriate to have this bootstrap 4 port in a separate repository (at least for the time being). But I wonder what the maintainers here think, @ryanfox1985 @GeorgeWL @adrianmo ? |
<i class="{{ .icon }}"></i> | ||
</div> | ||
{{ with $element.url }} | ||
</a> | ||
{{ end }} | ||
<h3>{{ $element.name | markdownify }}</h3> | ||
<h3 class="h4">{{ $element.name | markdownify }}</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it sounds weird h3 and class h4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. I just ripped this off from the Boostrapious live demo/raw distro. We download the raw distro from them and pay for a non-attribution license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I leave the comment opened to remember this on the final check
I'm not sure about this feature, how to manage it, what is the best. Time ago I realized the authors from Universal theme have updated the theme and it's not easy to apply the new updates to the current theme. Perhaps a new main branch or directly a new project. |
The new Universal version is already using Bootstrap v4 (v4.3.1) |
So, I’m happy to put this in a new repo. What I didn’t want to do is fork this without the consent of current maintainers. My preference is to fork it to |
I think the best is create a master_v2 in the same repository. And the release names use:
etc... |
I'd recommend to create a fresh repo as proposed by @varnerac (like |
No offence, but during the last two years there were periods during which almost no maintaining was done here. Which causes people to regularly place comments like this one. But if you give appropriate write access to @varnerac , putting the bootstap 4 port into a |
@salim-b , Last months this repository was very active:
So let's see if we can maintain the repository in a good direction. |
Ok, thank you! I can't promise anything but as long as I'll be using this theme myself I'll try to help here :) |
I changed the based branch to |
exampleSite/config.toml
Outdated
@@ -143,35 +140,35 @@ paginate = 10 | |||
enable = true | |||
# All carousel items are defined in their own files. You can find example items | |||
# at 'exampleSite/data/carousel'. | |||
# For more informtion take a look at the README. | |||
# For more information take a look at the README. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@varnerac I would appreciate misspelling words to be in another PR directly to master branch.
layouts/partials/map.html
Outdated
<input id="gmap-marker" value="{{ "img/marker.png" | relURL }}" /> | ||
<input type="hidden" id="gmap-lat" value="{{ .Site.Params.latitude }}" /> | ||
<input type="hidden" id="gmap-lng" value="{{ .Site.Params.longitude }}" /> | ||
<input type="hidden" id="gmap-marker" value="{{ .Site.BaseURL }}img/marker.png" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this change needed ? {{ "img/marker.png" | relURL }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd strongly suggest to stick with {{ "img/marker.png" | relURL }}
instead of {{ .Site.BaseURL }}img/marker.png
. The latter results in an absolute URL which can cause portability issues (which one can work around using Hugo's --baseURL
option; but if we can avoid the hassle from the beginning... 😉 )
layouts/partials/scripts.html
Outdated
<script src="{{ "js/hpneo.gmaps.js" | relURL }}"></script> | ||
<script src="{{ "js/gmaps.init.js" | relURL }}"></script> | ||
<script src="{{ "js/front.js" | relURL }}"></script> | ||
<script src="{{ .Site.BaseURL }}js/hpneo.gmaps.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here {{ "js/gmaps.init.js" | relURL }} is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, same here, pls use relative URLs!
Let me know if this works. I do not intend to change the CSS for |
on the latest Travis Build of this. |
@GeorgeWL Okay, if you click on "Details" on the TravisCI check, you'll see my latest commit passes. Unsure why it's not showing in the GitHub UI. |
Please don't merge this yet. While porting our site to the Bootstrap 4 version, we found some errors in the carousel. |
Any news about this? |
So, it depends on the definition of done. This works for the example Hugo project. However, it needs improvements for features not tested in the example app. Is the definition of done working with the example app, or works with everything? |
This has been stale for some time now; is this going to be picked up again by someone? I'm not too familiar with the bootstrap upgrade, but I do know that version 5 is out and version 3.3.7 has has some CVE's at the moment that are not going to be fixed: https://security.snyk.io/package/npm/bootstrap. It might be useful to get this PR ongoing |
all the people involved in this project have moved onto other things, I think it's fair to say, if you'd like an update, make a branching project In fact, for that matter, could we set this to "Archived" in the project settings please @maguri ? |
Do you have an appetite to move to the Bootstrap 4 version or hold it as a dev branch? We want to loosely track the upstream version.
There's a known issue this port. Highlighting of active tags does not work. I cannot find the CSS class to do this in the new Boostrapious Universal distribution.